<!--
 * @Descripttion: 
 * @version: 
 * @Author: wtzhang
 * @Date: 2021-08-02 13:53:34
 * @LastEditors: wtzhang
 * @LastEditTime: 2021-08-02 15:26:39
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app"></div>
  <script src="../js/old_version/react.development.js"></script>
  <script src="../js/old_version/babel.min.js"></script>
  <script src="../js/old_version/react-dom.development.js"></script>
  <script type="text/babel">
    // 创建虚拟数据
    let VMData = ['angular', 'vue', 'react']
    // 创建虚拟DOM
    const VDOM = (
      <div>
        <h1>前端JS框架列表</h1>
        <ul>
          {
            VMData.map((item, index) => {
              return <li key={index}>{item}</li>
            })
          }
        </ul>
      </div>
    )
    // 渲染DOM
    // ReactDOM.render(虚拟DOM, 容器)
    ReactDOM.render(VDOM, document.getElementById('app'))
  </script>
</body>

</html>